package com.tensquare.friend.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description：交友好友实体类
 * @Author: liulei
 * @Date: 2019年11月01日
 * @Version: V1.0
 **/
@Data
@Accessors(chain = true)
@Entity
@Table(name="tb_friend")
@IdClass(Friend.class) //表示联合主键类
public class Friend implements Serializable {

    @Id
    private String userid;

    @Id
    private String friendid;

    private String islike;
}
